﻿namespace Baggr.FeedParser.Rss
{
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Xml.Schema;
    using System.Xml.Serialization;

    [Serializable]
    [DebuggerStepThrough]
    [DesignerCategory("code")]
    public class RssImage
    {
        public RssImage()
        {
            Width = 88;
            Height = 31;
        }

        [XmlElement("url", DataType = "anyURI")]
        public string Url { get; set; }

        [XmlElement("title")]
        public string Title { get; set; }

        [XmlElement("link", DataType = "anyURI")]
        public string Link { get; set; }

        [XmlElement("width")]
        [DefaultValue(88)]
        public int Width { get; set; }

        [XmlElement("height")]
        [DefaultValue(31)]
        public int Height { get; set; }

        [XmlElement("description")]
        public string Description { get; set; }
    }
}